package com.lam.dormitory.service;

import com.lam.dormitory.entity.Dormitory;
import com.lam.dormitory.entity.Student;
import com.baomidou.mybatisplus.extension.service.IService;
import com.lam.dormitory.vo.StudentVo;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author lam
 * @since 2019-12-26
 */
public interface IStudentService extends IService<Student> {
    /**
     * 根据stuNo,stuName,stuAge,stuSex,stuMajor,stuPhone查询学生集合
     * @param student
     * @return
     */
    List<StudentVo> selectByStudent(Student student);
    /**
     * 根据roleId查找学生情况
     * @param roleId
     * @return
     */
    List<Student> selectByRoleId(Long roleId);

    /**
     * 查询所有学生专业（无重复）
     * @return
     */
    List<Student> selectMajor();

}
